package com.xgry.bpm.api.business.departmentalmanagement.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("DepartmentalManagement")
public class DepartmentalManagement extends Model<DepartmentalManagement> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "DepartmentalManagement_id", type = IdType.AUTO)
    private Integer departmentalmanagementId;

    @TableField("DepartmentalManagement_single_person")
    private String departmentalmanagementSinglePerson;

    @TableField("DepartmentalManagement_single_person_id")
    private String departmentalmanagementSinglePersonId;

    @TableField("DepartmentalManagement_auditor")
    private String departmentalmanagementAuditor;

    @TableField("DepartmentalManagement_altered_person")
    private String departmentalmanagementAlteredPerson;

    @TableField("DepartmentalManagement_making_time")
    private LocalDateTime departmentalmanagementMakingTime;

    @TableField("DepartmentalManagement_audit_time")
    private LocalDateTime departmentalmanagementAuditTime;

    @TableField("DepartmentalManagement_change_time")
    private LocalDateTime departmentalmanagementChangeTime;

    @TableField("DepartmentalManagement_billDate")
    private LocalDateTime departmentalmanagementBilldate;

    @TableField("DepartmentalManagement_upstream_document_number")
    private String departmentalmanagementUpstreamDocumentNumber;

    @TableField("DepartmentalManagement_downstream_document_number")
    private String departmentalmanagementDownstreamDocumentNumber;

    @TableField("DepartmentalManagement_upstream_document_bank_number")
    private String departmentalmanagementUpstreamDocumentBankNumber;

    @TableField("DepartmentalManagement_downstream_document_bank_number")
    private String departmentalmanagementDownstreamDocumentBankNumber;

    private String parentLevel;

    @TableField("DepartmentalManagement_state")
    private String departmentalmanagementState;

    @TableField("DepartmentalManagement_name")
    private String departmentalmanagementName;

    @TableField("DepartmentalManagement_code")
    private String departmentalmanagementCode;

    @TableField("DepartmentalManagement_DepartmentsHead")
    private String departmentalmanagementDepartmentshead;

    @TableField("DepartmentalManagement_DepartmentalLeadership")
    private String departmentalmanagementDepartmentalleadership;

    @TableField("DepartmentalManagement_AffiliatedGroup")
    private String departmentalmanagementAffiliatedgroup;

    @TableField("DepartmentalManagement_AffiliatedCompany")
    private String departmentalmanagementAffiliatedcompany;

    @TableField("DepartmentalManagement_Outagedate")
    private LocalDateTime departmentalmanagementOutagedate;

    @TableField("DepartmentalManagement_Remarks")
    private String departmentalmanagementRemarks;

    @TableField("GroupManagement_id")
    private String groupmanagementId;

    @TableField("CorporateManagement_id")
    private String corporatemanagementId;

    @TableField("DepartmentalManagement_processInstanceId")
    private String departmentalmanagementProcessinstanceid;

    @TableField("DepartmentalManagement_CentreDirector")
    private String departmentalmanagementCentredirector;


    @Override
    protected Serializable pkVal() {
        return this.departmentalmanagementId;
    }

}
